package tinsiec;

public class DummyParser implements IParser
{
    public ParseInfo parseBuffer(String buffer)
    {
        if(buffer.length() == 0)
            return new ParseInfo();
        return new ParseInfo(0, buffer.length());
    }

    public String formatMessage(String message)
    {
        return "<msg sender=\"" + NetworkConfig.getLocalIP() + "\">" + message + "</msg>";
    }

    public MessageInfo parseMessage(String message)
    {
        return new MessageInfo("", "");
    }

}
